package com.yyds.oneservice.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * Created by Enzo Cotter on 2022/12/12.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserProductVo对象", description="首页信息")
public class UserProductVo {

    @ApiModelProperty(value = "审核状态：0->未审核；1->审核通过")
    @TableId(value = "product_id")
    private Long productId;
    @ApiModelProperty(value = "商品描述")
    @TableField("name")
    private String name;
    @ApiModelProperty(value = "商品描述")
    @TableField("pic")
    private String pic;

    @ApiModelProperty(value = "商品描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "市场价")
    @TableField("original_price")
    private BigDecimal originalPrice;
/*关联用户信息*/
    @ApiModelProperty(value = "用户名")
    @TableField("nickname")
    private String nickname;
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty(value = "头像")
    @TableField("icon")
    private String icon;
}
